//
//  PHPhotoTypeManager.m
//  PrintFamily
//
//  Created by edaihua on 16/3/22.
//  Copyright © 2016年 ___PrintFactory___. All rights reserved.
//

#import "PFPrintManager.h"
#import "PFDefaultUserConfig.h"

@implementation PFPrintManager

+ (NSString*)getPrintTypeStringWithPrintType:(PhotoPrintType)type {
    NSString *typeString = nil;
    switch (type) {
        case PhotoType_Square_Mini:
            typeString = @"mini正方形";
            break;
        case PhotoType_Square:
            typeString = @"正方形";
            break;
        case PhotoType_Rectangle_Mini:
            typeString = @"mini长方形";
            break;
        case PhotoType_Rectangle_Medium:
            typeString = @"长方形";
            break;
        case PhotoType_Rectangle_Large:
            typeString = @"超大长方形";
            break;

        default:
            break;
    }
    return typeString;
}

+ (PhotoPrintType)getCurrentType {
    return [PFDefaultUserConfig getPrintType];
}

+ (void)setCurrentType:(PhotoPrintType)type {
    [PFDefaultUserConfig storePrintType:type];
}

+ (PhotoBoarder)getCurrentBoarder {
    return [PFDefaultUserConfig getBoarderType];
}

+ (void)setCurrentBoarder:(PhotoBoarder)type {
    [PFDefaultUserConfig storeBoarderType:type];
}

@end
